<html>
<head><meta charset="utf-8"><title>Ty · z-archived-t-compiler/wg-rls-2.0/chalk · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/index.html">z-archived-t-compiler/wg-rls-2.0/chalk</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html">Ty</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="161009917"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161009917" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161009917">(Mar 17 2019 at 18:41)</a>:</h4>
<p>This already looks a lot closer to Chalk, doesn't it: <a href="https://github.com/rust-analyzer/rust-analyzer/blob/1ffe23e67462ce4959ee93714405331aeb956540/crates/ra_hir/src/ty.rs#L98" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/1ffe23e67462ce4959ee93714405331aeb956540/crates/ra_hir/src/ty.rs#L98">https://github.com/rust-analyzer/rust-analyzer/blob/1ffe23e67462ce4959ee93714405331aeb956540/crates/ra_hir/src/ty.rs#L98</a></p>



<a name="161011833"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161011833" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161011833">(Mar 17 2019 at 19:38)</a>:</h4>
<p>Question to chalk folks: why is it <code>TypeName</code> and not <code>TypeConstructor/TypeCtor</code>?</p>



<a name="161080352"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161080352" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161080352">(Mar 18 2019 at 17:58)</a>:</h4>
<p>Nice</p>



<a name="161080367"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161080367" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161080367">(Mar 18 2019 at 17:58)</a>:</h4>
<p>Re: naming, I don't know. I guess I just think of (e.g.) <code>Vec</code> as being the "name" of the type :)</p>



<a name="161081893"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161081893" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161081893">(Mar 18 2019 at 18:14)</a>:</h4>
<p>I see <code>Name</code> to be slightly problematic, as it might conflict with other uses of Name (primarily, the hygienic name of item), so I would prefer to name it <code>TypeCtor</code>, both in RLS2 and in chalk :D</p>



<a name="161091977"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161091977" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161091977">(Mar 18 2019 at 20:12)</a>:</h4>
<p>I could live with that, although I am not wild about the 'contraction' to <code>Ctor</code> -- I guess it's fairly obvious</p>



<a name="161092146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161092146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161092146">(Mar 18 2019 at 20:14)</a>:</h4>
<p>to be fair, while <code>TypeName</code> is not scary, it's fairly non-obvious what it does :)</p>



<a name="161393283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty/near/161393283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/Ty.html#161393283">(Mar 21 2019 at 20:34)</a>:</h4>
<p>I'll call it <code>TypeCtor</code> for now, I'm not a fan of the contraction either but it's used a lot and <code>TypeConstructor</code> is really long...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>